﻿
var xmlHttp_CheckUser;
var xmlHttp_Menu;
function Onload() 
{ 
   GetXmlHttpObject();
   var check_url = "User.aspx?action=status";
   xmlHttp_CheckUser.open("post",check_url,true);
   xmlHttp_CheckUser.onreadystatechange=Login_check;
   xmlHttp_CheckUser.send(null); 
   
}
function Login_check()
{

     if (xmlHttp_CheckUser.readyState == 4) 
     {
          document.getElementById("LoginFrame").innerHTML = xmlHttp_CheckUser.responseText;
     }
}

function GetXmlHttpObject()
{
  try
    {
     xmlHttp_CheckUser=new XMLHttpRequest();
     xmlHttp_Menu=new XMLHttpRequest();
    }
  catch (e)
    {
    try
      {
       xmlHttp_CheckUser=new ActiveXObject("Msxml2.XMLHTTP");
       xmlHttp_Menu=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
       xmlHttp_CheckUser=new ActiveXObject("Microsoft.XMLHTTP");
       xmlHttp_Menu=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
}
function GetAjax()
{
  var t_xmlHttp;
  try
    {
     t_xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    try
      {
       t_xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
       t_xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return t_xmlHttp;
}